package lottery;

import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class TestFrame extends JFrame{
	
	int frameWidth = 1024;
	int frameHeight = 800;
	JLabel label = new JLabel();
	
	TestFrame(){
		this.setSize(frameWidth,frameHeight);
		this.setMaximumSize(new Dimension(frameWidth,frameHeight));
		this.setMinimumSize(new Dimension(frameWidth,frameHeight));
		
		this.add(label);
		this.setVisible(true);
		Thread t=new Thread(new Runnable() {  
            
            public void run() {  
                // TODO Auto-generated method stub   
            	int count = 0;
                while (count<=200){  
                    label.setText(""+count); 
//                    try {  
//                        Thread.sleep(500);  
//                    } catch (Exception e) {  
//                        // TODO: handle exception  
//                        e.printStackTrace();  
//                    }  
                    count++;  
                    if(count==200){  
                        count=1;  
                    }  
                }  
            }  
        });  
		t.start();
	}
	
	public static void main(String[] args){
		new TestFrame();
	}

}
